home *** CD-ROM | disk | FTP | other *** search
/ Scene Storm / Scene Storm - Volume 1.iso / coding / c / amiexpress / source / ae / code / ax3.00 / bbs.protos < prev    next >
Encoding:
Text File  |  1980-01-03  |  11.5 KB  |  400 lines

  1.  
  2. /* BBS.protos Prototypes  */
  3. /*-- MY added functions */
  4.  
  5. void AEPrintf (STRPTR format, ...);
  6. void    __asm AECryptStr(register __a0 char *);
  7. int    __asm AECryptCmp(register __a0 char *, register __a1 char *);
  8. int    __asm AECryptCpy(register __a0 char *, register __a1 char *);
  9. int    __asm AEClearMem(register __a0 char *, register __d0 long int);
  10.  
  11. int check_abort(void);
  12. int Zmodem_Send(char *flname);
  13.  
  14. void CheckShutDown(void);
  15. void SuspendBBS(void);
  16. char *GetDate(void);
  17. void main(int argc, char **argv);
  18. void ShutDown(char *s);
  19. void _wb_parse(void);
  20. void _stkover(void);
  21. //(JOE) 25-Jun temporary
  22. int MenuCommand(char str[]);
  23. /* Prototypes for functions defined in console.c */
  24.  
  25. void AEPutBlk(char *string,int length);
  26. int SCheckInput(void);
  27. int CheckCon(void);
  28. int ProcessLine(char *,char *,char *);
  29. int CheckInput(void);
  30. void ConPutChar(char *ch);
  31. void ConPutStr(char *string);
  32. void AEPutStr(char *s);
  33. void FAEPutStr(char *string);
  34. void SendChar(char ch);
  35. int GetConKey(int wait);
  36. int ReadChar(unsigned long wait);
  37. int FSReadChar(unsigned long wait);
  38. void CloseConsole(void);
  39. void SerPutBlk(char *s,int length);
  40. void ConPutBlk(char *s,int length);
  41.  
  42. void MyError(int );             /* bbslib */
  43. int DisplayFileList(void);
  44. int Upload_a_File(int ULFType);
  45.  
  46. int GetDirSpan(char *pass);
  47. int GetUN(char *SA);
  48. int CommandSplit(void);
  49. int StripBegining(void);
  50.  
  51. /* Prototypes for functions defined in mycore2.c */
  52.  
  53. int HELP(void);
  54. struct Task *StartWatchDog(void);
  55. void EndWatchDog(struct Task *task);
  56. void __saveds WatchDog(void);
  57. BPTR OpenAux(void);
  58. void CloseAux(BPTR tfh);
  59. int FlagPause(int count);
  60. int CheckWARN(char *temps);
  61. int Execute_WTest(char *str, char *str2);
  62. void RemoteShell(void);
  63. void SendExternal(char *fn,char *bf);
  64. void TestExternal2(void);
  65. int Check_For_File(char *Fn);
  66. int CompareTheseTwo(char *str, char *str2);
  67. void CopyStr(char *str1, int num1,int num2, char *str2);
  68. void Cursor_Up(void);
  69. void Cursor_Down(void);
  70. void Cursor_Left(void);
  71. void Cursor_Right(void);
  72. void BackSpace(void);
  73. void FSReDisplay(int from, int to);
  74. void WrapItUp(char *WRAP, int Linenum, char *Extra);
  75. int WordWrap(void);
  76. void AddTo(char *str);
  77. void MoveCursorTo(int x, int y);
  78. int Edit_with_FS(void);
  79. int UserAccountEdit(void);
  80. int Bulletins(void);
  81. BYTE CheckForNS(char *s);
  82.  
  83. /* Prototypes for functions defined in mycore3.c */
  84.  
  85. int OpenDoors(void);
  86. int WarpCheck(char *s);
  87. int BeginDMSCheck(char *flname);
  88. int CheckForPause(void);
  89. void UnAvailNotice(char *file,char *temp);
  90. void ToggleStatusDisplay(void);
  91. void MyDirAnyWhere(void);
  92. void EditEmacs(char *filename);
  93.  
  94. /* Prototypes for functions defined in init_board.c */
  95.  
  96. int Init_Boards(void);
  97. int Header_Segment(void);
  98.  
  99. /* Prototypes for functions defined in init_system.c */
  100.  
  101. void CloseZDisplay(void);
  102. void UpdateZDisplay(void);
  103. int OpenZDisplay(void);
  104. void OpenDisplay(void);
  105.  
  106. int myfgets(char *s,int l,FILE *f);
  107.  
  108. /* Prototypes for functions defined in logon.c */
  109.  
  110. UWORD CheckUserOnLine(struct User *user,UWORD check);
  111. int DoReserve(char *username);
  112. void CallersLog(char *stringout);
  113. void CallersLogDivider(void);
  114. void UDLog(char *stringout);
  115. void UDLogDivider(void);
  116. void DisplayUserToCallersLog(int Udonly);
  117. void LogOffLog(char *STAT);
  118. void Sysop_Account_Sequence(void);
  119.  
  120. /* Prototypes for functions defined in menu.c */
  121.  
  122. int FirstCharValue(char *s);
  123. int FirstChar(char *s);
  124. int ChecktoDisplay(char *s,char *temp,int doloop,int pause);
  125. int DoPause(void);
  126. void Pause(void);
  127. int CheckForZooM(void);
  128. int GetMailStatFile(void);
  129. int Zoomit(int conf,FILE *zf);
  130. int Zoom(void);
  131. void DisplaySysopULStats(void);
  132. void Clear_Online_Status(void);
  133. void Goodbye(void);
  134.  
  135. int Check_Online_Status(void);
  136.  
  137. /* Prototypes for functions defined in serial.c */
  138.  
  139. void __regargs MyColdReboot(void);
  140. void SendBreak(void);
  141. int OpenSerial(unsigned long Baud, unsigned char DataLen, unsigned char StopBits);
  142. int CheckSer(void);
  143. void CloseSerial(void);
  144. void DropDTR(void);
  145. void PurgeLineEnd(void);
  146. void PurgeLineStart(void);
  147. void PurgeLine(void);
  148. void SetBaud(long rate);
  149. void SerPutChar(char *ch);
  150. void SerPutStr(unsigned char *string);
  151. void sendser(unsigned char ch);
  152. int GetSerKey(int wait);
  153.  
  154. /* Prototypes for functions defined in timer.c */
  155.  
  156. void FinishTimer(void);
  157. int OpenTimer(void);
  158. void SetTimer(unsigned long secs, unsigned long micros);
  159. void CloseTimer(void);
  160.  
  161. /* Prototypes for functions defined in core.c */
  162.  
  163. void DoReset(void);
  164. void DebugOutput(char *s);
  165. void Say(char *s);
  166. void MyWrite(BPTR fh,char *s);
  167. void CheckIconifyMsg(void);
  168. void ZmodemStatPrint(char *s);
  169. void IconifyAE(void);
  170. void UnIconifyAE(int opt);
  171. void DisplayAwaitMsg(void);
  172. void StatRollMessage(char *s);
  173. void OSPrintf(char *s);
  174. void StatPrintTime(char *s);
  175. void StatChatFlag(void);
  176. void StatPrintUser(struct User *hoozer);
  177. int jive(char *nam, char *pat);
  178. void LRemoteShell(void);
  179. int CheckCSI(void);
  180. int CheckRexxMessage(void);
  181. void Reset_System(UBYTE Yes);
  182. void Cycle_The_Display(void);
  183. void ReInitModem(void);
  184. int Await_Logon(void);   /* only used in main.c */
  185. int LineInput(char *atstart, char *tohere, int maxlen, int time_allowed);
  186. int LineInputConverted(char *atstart, char *tohere, int maxlen, int time_allowed);
  187. int StringCompare(char *s, char *t);
  188. int MenuSend(char *s);
  189. int MenuSend24(char *s,int startcount);
  190. int Chat(void);
  191.  
  192. /* Prototypes for functions defined in edit.c */
  193.  
  194. int Find_Free_Line(void);
  195. void Init_Lines(void);
  196. void List_Lines(void);
  197. void Realign_Lines(void);
  198. void Retype_Line(char *temp);
  199. void Clear_Buffer(void);
  200. void Edit_Line(int which);
  201. void Free_Space(void);
  202. void Delete_Line(int which);
  203. int Abort(void);
  204. int Enter(char *temp);
  205.  
  206. /* Prototypes for functions defined in accounts.c */
  207.  
  208. long MySeek(BPTR f,long pos,long mode);
  209. long Append(struct User *hoozer,struct UserKeys *hoozer2);
  210. long Find_Last_Account(void);
  211. int Load_Account(int slot, struct User *hoozer, struct UserKeys *hoozer2);
  212. int Load_UserKey_Acc(int slot, struct UserKeys *hoozer);
  213. int Find_User_From_Name(UWORD start, char *name, struct User *hoozer, struct UserKeys *hoozer2);
  214. int Find_Open_Account(struct User *hoozer, struct UserKeys *hoozer2);
  215. int EditInfo(int which, struct User *hoozer, struct UserKeys *hoozer2);
  216. int Edit_Accounts(void);
  217. int List_New_Accounts(void);
  218.  
  219. /* Prototypes for functions defined in bcom.c */
  220.  
  221. int BCom(void);
  222. int Bulletin_Listings(struct Bulletin_Header *bh);
  223. int Read_Bulletin(struct Bulletin_Header *bh, int number);
  224.  
  225. /* Prototypes for functions defined in jcom.c */
  226.  
  227. int Question(void);
  228. int NumberOfLinesTest(void);
  229. int ChooseComputer(void);
  230. int CheckifNameAllowed(char *name);
  231. void OpenAFile(char *FFN);
  232. int JCom(void);
  233.  
  234. /* Prototypes for functions defined in mail.c */
  235.  
  236. int YesNo(UWORD flag);
  237. int ChooseAName(char *s,struct User *hoozer,struct UserKeys *hoozer2,int lflag);
  238. int CheckForAst(char *s);
  239. void MyPutStr(char *s);
  240.  
  241.  
  242. /* Prototypes for functions defined in proto.c */
  243. void itp(long size,UBYTE r);
  244. int proto(struct IOExtSer *RR, struct IOExtSer *WR, struct timerequest *TR, \
  245.           char *BF, long BS, long BD, char *flname, int send, int db);
  246. void sendbyte(int ch);
  247. void sendbuffer(char *buf, int len);
  248. void waitwrite(void);
  249. void purgewrite(void);
  250. int readbyte(void);
  251. void purgeline(void);
  252. int checkline(void);
  253. void throughput(long size);
  254. void InitAsync(void);
  255. void WriteAsync(char *buf, long bytes);
  256. void EndAsync(void);
  257. BPTR Aopen(char *name, long mode);
  258. void Aclose(void);
  259.  
  260. /* doug */
  261.  
  262. UWORD __regargs strcn(UBYTE *, UBYTE *, int);
  263.  
  264. int FlagFiles(char *s);
  265. void DisplayULStats(struct User *User);
  266. void SetProtocol(char *str);
  267. int Check_list(char *lfnames,char *CLrfinal);
  268.  
  269. int View_A_File(void);
  270. ULONG FileCopy(char *s,char *d);
  271.  
  272. void Convert_CTime_To_Date(char *Wstr, char *Wfmtstr, char *DT_temp);
  273.  
  274. int Save_Account(struct User *hoozer, struct UserKeys *hoozer2, int uslot, int flg);
  275. BOOL my_dir(char *);
  276. void SysopLog(char *stringout);
  277. void ErrorLog(char *stringout);
  278. void StripReturn(char *);
  279. void rand_color(void);
  280. int PGoodbye(void);
  281. int String_In_File(char *fname, char *str, int flag);
  282. char *str_save(char *str);
  283. //int Join_Conference(int cn);
  284.  
  285. /* Prototypes for AEMCI.c*/
  286. int mcisend(char *FileName);
  287. int mciputstr(char *str);
  288. int Restricted(char *str);
  289. int AllowedView(char *str);
  290.  
  291. //await_logon.c protos
  292. void Server(int Code);
  293.  
  294. int SetEnvStat(int);
  295. BOOL CheckDoorMsg(int Mode);
  296. void OpenTheClip(void);
  297. void CloseTheClip(void);
  298. BOOL CheckForClip(void);
  299. void SendMasterUpload(char *);
  300. void SendMasterDownload(char *);
  301. void SendMaster(void);
  302. void CreateServerRP(int node);
  303. void DeleteServerRP(void);
  304. unsigned long ResControl(int);
  305. void DeleteResControl(void);
  306. void StartLog(char *stringout);
  307. void IntToFile(char *s,int num);
  308. int IntFromFile(char *s,char *temp);
  309. int TLock(char *);
  310. struct MsgPort *CreatePrt(UBYTE *name,LONG pri);
  311. //int JHLineInput(char *atstart, char *tohere, int maxlen, int time_allowed);
  312. int HtKey(char *);
  313. void showgfile(char *);
  314. void showfile(char *);
  315. int EditFile(char mstring[],int End,int Length);
  316. int AddFlagtoList(char *s);
  317. VOID DumpActiveUser(char *FileName);
  318. int DisplayFile(char *s);
  319. int Zmodem_Receive(char *flname,int ULFType);
  320. int Zmodem_Send(char *flname);
  321. int rnd(int);
  322. int Wrap(int Start,int End,int Opt,char *Result,char *OverFlow);
  323. int GetWrpOpt(void);
  324. int Control(int node,int Type,int ModType);
  325. int ChecktoDisplay(char *s,char *temp,int doloop,int pause);
  326. int CustomCommand(char *Location,char *CustomCmd,int Private);
  327. STRPTR GetFileComment(char *);
  328. //char ReadClip(void);
  329. /*** AE LIBRARY PROTOS ***/
  330. int CheckCarrier(void);
  331. int strwild(char *str,char *str1,char wild,int len);
  332. void strlim(char *str1,char *str2,int limit);
  333. void stripansi(char *s,char *d,struct ansi *ansi,int resetit,int strip);
  334. STRPTR GetTheDate(long number);
  335. STRPTR GetTheTime(long number);
  336. void ConvertAccess(void);
  337. //void getsystime(long number,char *d,char *t);
  338. unsigned long ChatSignal(struct Task *taskSig,char *s,long chatSig,int node,int Opt);
  339. void IntDoReset(char *s);
  340. void ADD_BIT(int bitnum);
  341. void REM_BIT(int bitnum);
  342. BOOL GET_BIT(int bitnum);
  343. void CreateCustomMenus(void);
  344. void MaddUpdate(struct User *User);
  345. void SetEnvMsg(char *s);
  346. void MyClearStatusPane(void);
  347. void StatMessage(int x,int y,char *s);
  348. void StatClearTime(void);
  349. void MyClearStatusPane(void);
  350. void StatPrint(char *s);
  351. void StatCursorTo(int x,int y);
  352. void SendQuietFlag(int opt);
  353. void StatParkCursor(void);
  354. int LoadMsg(char *s);
  355. void RePurge(void);
  356. int ReadAwaitChar(ULONG wait);
  357. void GetConfName(char *n,char *l,int Conf);
  358. int IsValidConf(int Conf);
  359. void SaveMsgPointers(int Conf);
  360. void LoadMsgPointers(int Conf);
  361. void MasterLoadPointers(void);
  362. void MasterSavePointers(void);
  363. void ClearMsgPointers(void);
  364. void AddMsgPointers(void);
  365.  
  366. ULONG GetConfBaseLine(int slot);
  367. int IsTempConf(struct User *t,int Conf);
  368. int IntFromIcon(char *s,char *c);
  369. int IsFromIcon(char *s,char *c);
  370. int GetFirstName(char *path,char *buf);
  371. void SetNRAMS(void);
  372. int GetFromIconStr(char *s,char *c,char *buf);
  373. int IsValidConfObj(int Conf,char **types);
  374. int GetInverseObj(int CN,char **types);
  375. int RelConfObj(int CN,char **types);
  376. void ConvertArea(void);
  377. void AddAreaBit(int bitnum);
  378. void RemAreaBit(int bitnum);
  379. BOOL GetAreaBit(int bitnum);
  380.  
  381. void XPRReceive(char *filename);
  382. void XPRSend(char *filename);
  383. void GetProtocol(void);
  384.  
  385. void ReceivePlayPen(void);
  386. int NameCompare(char *s,char *t);
  387. void Save_ConfDB(int account,int conf,APTR address);
  388. void Load_ConfDB(int account,int conf,APTR address);
  389. int Find_User_From_Number(int start,struct UserKeys *hoozer);
  390. void DebugLog(int data);
  391. void SendACPCommand(char *string,int command,int node);
  392. void ClearProtocol(void);
  393. void InitUser(struct User *u,struct UserKeys *k);
  394. void ModemOffHook(void);
  395. int IsFromConf(int Conf,char *c);
  396. int GetFromConf(int Conf,char *c,char *buf);
  397. int IntFromConf(int Conf,char *c);
  398. int FindAssign(char *s);
  399. int asl(char *s);
  400. int batchasl(char *s);